package lib.bone.flow.dao;

import lib.bone.flow.domain.entity.FlowAttach;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface FlowAttachDAO extends JpaRepository<FlowAttach,String> {
    /**
     * 根据流程实例ID查询
     */
    List<FlowAttach> findByFlowWorkId(String flowWorkId);
    /**
     * 根据流程实例ID删除
     */
    void deleteByFlowWorkId(String flowWorkId);
}
